package com.facebookdirectory.session;

import com.facebookdirectory.entity.*;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityHome;

@Name("fBAppUsageHome")
public class FBAppUsageHome extends EntityHome<FBAppUsage> {

	public void setFBAppUsageId(Long id) {
		setId(id);
	}

	public Long getFBAppUsageId() {
		return (Long) getId();
	}

	@Override
	protected FBAppUsage createInstance() {
		FBAppUsage fBAppUsage = new FBAppUsage();
		return fBAppUsage;
	}

	public void load() {
		if (isIdDefined()) {
			wire();
		}
	}

	public void wire() {
		getInstance();
	}

	public boolean isWired() {
		return true;
	}

	public FBAppUsage getDefinedInstance() {
		return isIdDefined() ? getInstance() : null;
	}

}
